<?php
include(dirname(__FILE__) . '/../../../bootstrap/unit.php');
require_once sfConfig::get('sf_symfony_lib_dir') . '/util/sfToolkit.class.php';
require_once sfConfig::get('sf_symfony_lib_dir') . '/yaml/sfYaml.php';

Logger::configure(dirname(__FILE__) . '/../../log4phpconfig.properties');

$configuration = ProjectConfiguration::getApplicationConfiguration( 'backend', 'test', true);

new sfDatabaseManager($configuration);
//Doctrine_Core::generateYamlFromModels(sfConfig::get('sf_root_dir'). '/config/doctrine', sfConfig::get('sf_root_dir'). '/lib/model');
//Doctrine_Core::createTablesFromModels(sfConfig::get('sf_root_dir'). '/lib/model');

//Doctrine_Core::loadData(sfConfig::get('sf_test_dir').'/unit/fixtures/doctrine');

$methodName="findShiftForDay";
$tcount = count(1);

$t = new lime_test($tcount);
$t->diag("EmployeeTable.$methodName Tests: $tcount");

$sdt = Doctrine_Core::getTable('ShiftDay');
$shift = $sdt->findShiftForDay(1,'2010-1-1');
echo $shift->getShift1();
?>
